/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package Controller;
import Controller.*;
import ChatNI.*;
import Model.*;
import chatGUI.ChatGui;

/**
 *
 * @author Ridiss
 */
public class ChatSystem {
    
    /**
     *
     */
    public ChatSystem(){
       ChatGui gui = new ChatGui();
       ChatNI net = new ChatNI();
       ChatModel userList = new ChatModel( gui);
       ChatController ctrl = new ChatController(gui, net, userList);

       
       gui.setController(ctrl);
       net.setController(ctrl);
       
     
   }
   
    /**
     *
     * @param portReception1
     * @param portReception2
     */
    public ChatSystem(int portReception1, int portReception2) {
       //... pour les tests en local
   }

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        new ChatSystem();
    }
    
}
